package main

import (
	"fmt"
	"os"
)

func typeJude(items...interface{}){

	for index,x:=range items{
		switch x.(type){
		case float32,float64:
			fmt.Printf("第 %v 个数，数据类型为符点数，值为%v\n",index,x)
		case int,byte,rune,int16,int64:
			fmt.Printf("第 %v 个数，数据类型为整数，值为%v\n",index,x)
		case string:
			fmt.Printf("第 %v 个数，数据类型为字符串，值为%v\n",index,x)
		default:
			fmt.Printf("第 %v 个数，数据类型不知道，值为%v\n",index,x)
		}
	}
}
type s struct{

}
func main(){

//类型断言实践3
	typeJude(1,2,11.22,"china",100,"test",s{})
}